package com.mentaleye.enums;

/**
 * Created by Skeyedu on 2016/12/15.
 */
public enum DictionaryEnums {
    CURRICULUM_TYPE(1, "课程类型"),CURRICULUM_STEP(2, "课程阶段"), SEX(3, "性别"),JOB(4,"职位"),FEE_TYPE(5,"费用类型"),
    CLASS_STATE(6,"班级状态"),TEACHER_STATUS(7,"教师状态"),STATUS(9, "学校状态"),STATE(10, "学生状态"),CLASS_PERSON(17,"班级人员类型"),EDUCATION(67,"学历"),
    PERMISSIONSTYPE(83,"权限类型"),PROPERTY_TYPE(118,"财产类型"),PROPERTY_STATE(121,"财产状态"),USER_TYPE(128,"使用人员类型"),PSERSON_TYPE(8,"人员类型"),
    TEACHER_TYPE(24,"教师"),STUDENT_TYPE(23,"学生"),CURRICULUM_TEMP_STATUS(139,"模板状态"),GROUP_PERSON_ROLE(156,"分组人员角色"),STUDENT_GROUP(200,"学生分组"),
    IS_RECRUIT(214,"招聘情况"),IS_STUDY(217,"推荐情况"),WORK_STATE(220,"学员工作状态"),NOT_WORK(222,"离职"),UNUSE(124,"未使用"),IN_USE(125,"使用中"),
    INTERFLOW_TYPE(206,"沟通方式"),INTERFLOW_WILL(210,"沟通意愿"),PROMPT_TPYE(150,"提醒类型"),STUDENT_ATTENDANCE_TIME(301, "上学签到时间"),STUDENT_OVER_TIME(302, "放学签退时间"),
    COMPANY_BASE(311, "公司基地"),STUDENT_TYPE_TYPE(331, "学生类型"),STUDENT_STATE (335, "学生状态"),NO_INTO_CLASS(336,"未入学"),
    INTO_CLASS(337,"就读"),STUDENT_TEMP(338,"休学"),STUDENT_DROP(339,"退学"),NO_EMPLOYMENT(340,"未就业"),EMPLOYMENT(341,"就业"),DEFAULT_PASSWORD(342,"默认密码"),PROMPT_TIME(180,"提醒时长"),
	COMPANY_TYPE(351,"单位企业类型"),HAS_DELETE(29,"已删除"),APPROVAL(182,"审批状态"),UNCOMMOTTED(183,"未提交"),PENDING_APPROVAL(184,"待审批"),PASSED(185,"已通过"),NOT_PASS(186,"未通过"),
	TO_BE_CARRIED_OUT(187,"待开展"),ALREADY_CARRIED_OUT(188,"已开展"),COMPLETED(189,"已结束"),TEACHING_CLASS(21,"在授班"),STUDENT_USER_TYPE(132,"学生"),FORM_TYPE(366,"表单类型"),
    FORM_TYPE_ASSESSMENT(370, "阶段考核"),
    FORM_TYPE_SCORE(371,	"教师评分"),
    FORM_TYPE_TASK(372,	"作业布置"),
    FORM_TYPE_INTERVIEW(373,	"模拟面试"),
    FORM_TYPE_WORK_FLOW(374,	"流程表单"),
    DISCIPLINE_TYPE(391,"违纪类型类型"),ATTENDANCE_TYPE(392,"考勤"),NORMAL_TYPE(393,"日常");
    //考核类型

    private DictionaryEnums(Integer code, String msg) {

        this.code = code;
    }

    private Integer code;
    private String msg;
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 根据编码查找枚举
     */
    public static DictionaryEnums find(int code) {
        for (DictionaryEnums frs : DictionaryEnums.values()) {
            if (frs.getCode().intValue() == code) {
                return frs;
            }
        }
        return null;
    }
}
